import { Router } from 'express';
import { getProfile, updateProfile } from '../controllers/user.controller';
import { authMiddleware } from '../middlewares/auth.middleware';

const router = Router();

router.use(authMiddleware); // 所有接口必须登录
router.get('/userInfo',getProfile);
router.put('/', updateProfile);

export default router;
